package com.yzzrjy.Dao.Interfaces;

import com.alibaba.fastjson.JSONObject;
import com.yzzrjy.bean.*;

import java.sql.SQLException;
import java.util.List;

public interface UserDao {
    List<UserShowBean> getOnlineUserList(String myUid, String sex, int start, int pageSize) throws SQLException;
    List<UserShowBean> getOnlineUserList(String myUid, String uidS) throws SQLException;

    void registerInfo(String uid, String nickname, String sex, byte state) throws SQLException;

    UserBaseBean getUserBaseByPhone(String phone) throws SQLException;

    UserBaseBean getUserMe(String uid) throws SQLException;

    void addNewUserByPhone(long newUid, String phone, byte state, int coin, String head, String signature) throws SQLException;

    //获取edit部分
    EditInfoBean getEditInfo(String uid) throws SQLException;

    UserVipBean getUserVipBean(String uid) throws SQLException;

    //base,info,datum,距离
    UserLiveBean getUserLiveBean(String uid, String myUid) throws SQLException;

    UserLiveBean getUserInfoTable(String uid) throws SQLException;

    void updateAlbum(String uid, String albumJson) throws SQLException;

    void updateFace(String uid, String remoteName) throws SQLException;

    //更新user_info表
    void updateUserInfo(String uid, JSONObject jsonObject) throws SQLException;

    int searchNickname(String nickname) throws SQLException;

    List<UserLetBean> getUserLetList(String uidList) throws SQLException;

    List<UserVipBean> getUserVipList(String uidS) throws SQLException;

    void updateBirthday(String uid, String birthday, boolean cardAttest) throws SQLException;


}
